﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>groupedItems</title>
	
    <!-- application references -->
	<link href="/pages/groupedItems/groupedItems.css" rel="stylesheet" /> 
    <script src="/pages/groupedItems/groupedItems.js"></script>
    
</head>
<body>
    
    <div class="localeTemplate" data-win-control="WinJS.Binding.Template">
		<div class="locale" data-win-bind="style.backgroundImage:satellite">
			<span class="zip" data-win-bind="textContent:zip"></span>
			<span class="city" data-win-bind="textContent:city"></span>
			<span class="state" data-win-bind="textContent:state"></span>
		</div>
	</div>

    <!-- The content that will be loaded and displayed. -->
    <div class="fragment groupeditemspage">
        <header aria-label="Header content" role="banner">
            <button data-win-control="WinJS.UI.BackButton"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle"><span class="demo">Demo</span><span class="graphics">graphics</span></span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div id="listView" class="win-viewport groupeditemslist" data-win-control="WinJS.UI.ListView" data-win-options="{itemDataSource:Data.list.dataSource, itemTemplate:select('.localeTemplate'), layout:{type:WinJS.UI.GridLayout, maximumRowsOrColumns:1}, selectionMode:'none'}"></div>
        </section>
    </div>

    <div id="flyout" data-win-control="WinJS.UI.Flyout" data-win-options="{anchor:'addZipCodeAppBarButton'}">
        <div class="addZipCode">
            <h2>Add Zip Code</h2>
            <input id="tb_zipCode" type="text" style="border: medium;">
            <button id="addZipCodeButton" type="button">OK</button>
        </div>
    </div>

    <div data-win-control="WinJS.UI.AppBar">
        <button id="addZipCodeAppBarButton" data-win-control="WinJS.UI.AppBarCommand" data-win-options="{flyout:select('#flyout'), icon:'add', id:'addZipCodeAppBarButton', label:'Add Zipcode', onclick:showFlyout, section:'global', type:'flyout'}" name="AddZip"></button>
    </div>

</body>
</html>
